package cn.tedu.review;
//测试类
public class TestAnimal {
    public static void main(String[] args) {
        Pigeon p=new Pigeon();
        System.out.println(p.LEG_NUMBERS);
        System.out.println(p.eggNumbers);
        p.layeggs();
        p.fly();

        Ant a=new Ant();
        System.out.println(a.eggNumbers);
        System.out.println(a.LEG_NUMBERS);
        a.fly();
        a.spawn();

        Bee b=new Bee();
        System.out.println(b.LEG_NUMBERS);
        System.out.println(b.eggNumbers);
        b.fly();

        b.makeHoney();
    }
}
